
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@page import="gruppe7.util.Html" %>
<%@page import="gruppe7.data.User" %>
<%@page import="gruppe7.data.UserException" %>
<%@page import="gruppe7.data.UserController" %>

<html>

<%
Html html = new Html(); 
UserController uc = UserController.getInstance();
%>

<% out.print(html.setHeader("Index")); %>

<body>
<jsp:include page="main_links.jsp" />

<div id ="content">
<div id="content-left">

<h1>Welcome to TLRS The Local Railway System</h1><br/>
<%
if (uc.isValidSession(request)) {
%>

<h4>You are logged in and can use all facilities!</h4><br/>
<p class='center'><img src = 'images/tour.jpeg' width = '500px'></p>
<p><br/>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vehicula convallis diam a eleifend. Maecenas at aliquet sapien. Morbi quis aliquet est. Phasellus eget arcu quis ipsum vestibulum molestie. Fusce eget felis tellus, sit amet aliquet libero. Donec mollis metus sed sem dapibus consequat. Ut eleifend porttitor tristique. Etiam placerat dapibus urna in aliquam.
</p>

<%
}
else {
	%>
	<p>You are not logged in - <a href='login.jsp'>Login here</a></p>
	<%
}

%>

<p></p>
</div>
</div>

<div id ="lower-content"></div>
<%= html.setFooter() %>

</body>
</html>